#ifndef __ZAPPYSERVER_H__
#define __ZAPPYSERVER_H__

#include <QObject>
#include <QTcpServer>

class ZappyServer : public QObject {
Q_OBJECT
Q_PROPERTY(quint16 port READ port WRITE setPort)
Q_PROPERTY(bool isIpv6 READ isIpv6)
Q_PROPERTY(bool isSSL READ isSSL)

private:
    QTcpServer _tcpServ;
    quint16 _port;
    bool _isIpv6;
    bool _isSSL;

public:
    explicit ZappyServer( void );
    ~ZappyServer( void );
    
    //for dbus
    void setPort( quint16 port );
    quint16 port( void );
    bool isIpv6( void );
    bool isSSL( void );
   
    //before dbus
    void setSSL( void );
    void setIpv6( void );

public slots:
    void start( void );
    void stop( void );


signals:

};

#endif /* __ZAPPYSERVER_H__ */